//
//  LDCountDownButton.h
//  zhilian
//
//  Created by 李丹 on 2019/7/5.
//  Copyright © 2019 LZT. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,LDCountType) {
    
    LDCountTypeNone,
    LDCountTypeAttribute
};
@interface LDCountDownButton : UIButton
@property (nonatomic, assign)NSInteger totalSecond;
@property (nonatomic, strong)NSString * defautString;
@property (nonatomic, strong)NSString * preString;
@property (nonatomic, strong)NSString * lastString;

@property (nonatomic, strong)UIFont   *font;
@property (nonatomic, strong)UIColor  *lastStringTextColor;

@property (nonatomic, assign)LDCountType type;

//倒计时时间
+(instancetype)createButtonTimeSecond:(NSInteger)second;


///开始倒计时
- (void)startCountDown;
///停止倒计时
- (void)stopCountDown;
@end


